<table class="eui-datagrid" id="grid${m}" style="height:100%"
	data-options="idField:'id',
		singleSelect:false,
		collapsible:true,
		striped:true,
		nowrap:true,
		fitColumns:true,scrollbarSize :0,
		url:'${path}/eframe/org/employee/emp!list.action',
		method:'post',
		onLoadError:showErrorMsg,
		autoRowHeight:true,
		onClickRow: onlySelectDatagridRow,
		pagination:true,
		pageList:[1,5,10,15,20,30,50,100],
		pageSize:10,
		toolbar:'#tools${m}'">
	<thead>
		<tr>
			<th data-options="field:'id',checkbox:true"></th>
			<th data-options="field:'empname',halign:'center',align:'left',width:50">员工姓名</th>
			<th data-options="field:'createTime',halign:'center',align:'center',width:50">创建时间</th>
		</tr>
	</thead>
</table>
<div id="tools${m}" style="padding:5px;height:auto">
	<div>
		<table class="condition-table">
			<input class="textbox-value" name="criteria.expr['orgid_eq']" value="${orgid}"/>
			<input class="textbox-value" name="criteria.expr['positionid_eq']" value="null"/>
			<tr>
				<th>员工名称：</th>
				<td><input class="eui-textbox" style="width:120px" name="criteria.expr['empname_like']"></td>
				<td><a href="javascript:void(0)" class="eui-linkbutton" iconCls="icon-search" plain="true" id="searchbtn${m}">查询</a></td>
			</tr>
		</table>
	</div>
</div>
<script>
	$("#searchbtn${m}").click(function(){
		$("#grid${m}").datagrid("reloadWithCriteria");
	});
</script>